import Vue from 'vue';
import 'normalize.css';
import BScroll from 'better-scroll';
import { PullRefresh } from 'vant';
import Router from 'vue-router';
import App from './App';
import apis from './http';
import {router} from "./router";
import Vant from 'vant';
import 'vant/lib/index.css';
import Toast from 'vant/lib/toast';
import { Swipe, SwipeItem } from 'vant';
import Bus from './eventBus'
import store from './Vuex';

Vue.prototype.$BScroll = BScroll;
Vue.prototype.$Bus = Bus;
Vue.use(apis);
Vue.use(Router);
Vue.use(Vant);
Vue.use(Toast);
Vue.use(Swipe).use(SwipeItem);
Vue.use(PullRefresh);

new Vue({
  render: h => h(App),
  router,
  store,
}).$mount('#app');
